<template>
   <div class="outer">
     <div class="item">
         <div class="icon"></div>
         <div>客服</div>
       </div>
     <div  class="item">
       <div class="service"></div>
       <div>店鋪</div>
     </div>
     <div  class="item">
       <div class="shop"></div>
       <div>收藏</div>
     </div>
     <div  class="item2" @click="addCart">加入购物车</div>
     <div  class="item3">购买</div>
   </div>
</template>

<script>
  export default {
    name: "DetailBottonBar",
    methods:{
      addCart(){
        this.$emit("addCart");
      }
    }
  }
</script>

<style scoped>
.outer{
  height: 49px;
  background-color: #ff8198;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  display: flex;
}
.item{
  text-align: center;
  flex: 1;
  background-color: white;
  padding-top: 5px;
}
.item .icon{
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("~assets/img/detail/detail_bottom.png");
  background-size: cover;
}
.item .service{
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("~assets/img/detail/detail_bottom.png");
  background-size: cover;
  background-position: 0 -24px;
}
.item .shop{
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("~assets/img/detail/detail_bottom.png");
  background-size: cover;
  background-position: 0 -48px;
}
.item2{
  width: 100px;
  line-height: 49px;
  background-color: orange;
  text-align: center;

}
 .item3{
   width: 70px;
   line-height: 49px;
   background-color: #fd6fef;
   text-align: center;
 }
</style>
